package com.cai.oamanager.dao;

import com.cai.oamanager.entity.Leave;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/3/2 16 : 37
 * @package：com.cai.oamanager.dao
 */
@Mapper
public interface LeaveDao {

    List<Leave>  getAllLeave(@Param("stuId") Integer stuId,@Param("start") Integer start,@Param("size") Integer size);
    void addLeave(@Param("leave") Leave leave);

    int getLeaveCount(@Param("stuId") Integer stuId);

    List<Leave> getLeaves(@Param("pid") String pid);

    void instructorApproved(@Param("leid") Integer leid,@Param("sta") Integer sta);
}
